package com.sheep.classroompie.service;

import com.sheep.classroompie.entity.Teacher;
import com.sheep.classroompie.repository.TeacherRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherServiceImpl implements TeacherService{

  @Autowired
  TeacherRepository teacherRepository;
  @Override
  public Teacher login(Teacher teacher) {
    return teacherRepository.login(teacher);
  }

  @Override
  public Integer register(Teacher teacher) {
    return teacherRepository.register(teacher);
  }

  @Override
  public Boolean uploadAvatar(Teacher teacher) {
    return teacherRepository.uploadAvatar(teacher);
  }

  @Override
  public void changePassword(Teacher teacher) {
    teacherRepository.changePassword(teacher);
  }
}
